home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / xref_v1.1.lha / XRef / myinclude / debug.h next >
Encoding:
C/C++ Source or Header  |  1994-11-29  |  599 b   |  36 lines

  1. #ifndef DEBUG_H
  2. #define DEBUG_H
  3.  
  4. /* debug.h
  5. **
  6. ** $VER: debug.h 1.2 (17.11.94)
  7. **
  8. ** by
  9. **
  10. ** Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
  11. **
  12. ** (C) Copyright 1994
  13. ** All Rights Reserved !
  14. **
  15. ** $HISTORY:
  16. **
  17. ** 17.11.94 : 001.002 :  added __LINE__ option
  18. ** 31.03.94 : 001.001 : initial
  19. */
  20.  
  21. #ifdef DEBUG_CODE
  22.  
  23. #define bug           kprintf
  24. #define DB(x)        { kprintf(__FILE__ "(%4ld):" __FUNC__ "() : ",__LINE__); \
  25.                       kprintf x ; }
  26. #define D(x)        x
  27.  
  28. extern void kprintf(char *fmt,...);
  29. #else
  30. #define DB(x)
  31. #define D(x)
  32. #endif
  33.  
  34. #endif   /* DEBUG_H */
  35.  
  36.